package com.future.orm.util;

import com.future.orm.mapping.ParameterMapping;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author shiyong
 * 2020/5/27 13:36
 */
@Data
public class ParameterMappingTokenHandler implements TokenHandler {
    private List<ParameterMapping> parameterMappingList = new ArrayList<>();

    @Override
    public String handleToken(String content) {
        parameterMappingList.add(buildParameterMapping(content));

        return "?";
    }

    private ParameterMapping buildParameterMapping(String content) {
        return new ParameterMapping(content);
    }
}
